#define MENUBAR_OPH

#ifndef BWIN_OPH
#include <sdk\bwin>
#endif

#ifndef PULLDOWN_OPH
#include <sdk\pulldown>
#endif

/* Property of menutab */

STRUCT PRS_MENUTAB
	txt%
	xoff%
ENDS

STRUCT PR_MENUTAB
	root#(SIZEOF(PRS_ROOT))
	win#(SIZEOF(PRS_WIN))
	menutab#(SIZEOF(PRS_MENUTAB))
ENDS

/* Constants for menubar */

#define MENUBAR_LEFT_SHOULD 4
#define MENUBAR_RIGHT_SHOULD 4
#define MENUBAR_MAX_MENU 15
#define MENUBAR_MIN_GAP 3
#define MENUBAR_MAX_GAP 10
#define MENUBAR_3b_TAIL_WIDTH 18

/* Types for menubar */

STRUCT MENUBAR_ITEM
	menu_id%
	mb_txt#(1)
ENDS

STRUCT MENUBAR
	count#
ENDS

/* Property of menubar */

STRUCT PRS_MENUBAR
	tab%
	menu%
	mb%
	num#
	xoff#
	toff#
	asc#
	pos%(MENUBAR_MAX_MENU+1)
ENDS

STRUCT PR_MENUBAR
	root#(SIZEOF(PRS_ROOT))
	win#(SIZEOF(PRS_WIN))
	menubar#(SIZEOF(PRS_MENUBAR))
ENDS
